package util.designpattern.factory;

public class ShapeDemo {

    public static void main(String[] args) {

        Shap shap = ShapeFactory.getShape("CIRCLE");
        shap.draw();
        Shap shap1 = ShapeFactory.getShape("RECTANGLE");
        shap1.draw();
        Shap shap2 = ShapeFactory.getShape("SQUARE");
        shap2.draw();
    }
}
